# Replication data for "Divided by the Vote: Affective polarization in the Wake of the Brexit Referendum"

This repository contains a large number of files that together constitute the replication data for:

> Sara B. Hobolt, Thomas J. Leeper, and James Tilley. 2020. "Divided by the Vote: Affective polarization in the Wake of the Brexit Referendum." *British Journal of Political Science*: In press.

There are six datasets used in the article (described in Table 1 of the article itself):

1. British Election Study ("BES")
2. YouGov tracker survey ("Tracker")
3. YouGov one-off cross-sectional survey ("YouGov") consisting of two parts:
  - A party identity dataset
  - A Brexit identity dataset
4. Sky polling survey ("Sky")
5. BBC Director General conjoint study ("BBC")
6. Lodger conjoint study ("Lodger")

Data and analysis code for all six datasets is provided here. The following files are provided:

## BES

bes-analysis.sps: an SPSS syntax file for the BES study

The BES data can be obtained directly from the British Election Study website. The data file itself is too large to redistribute.

## Tracker

tracker-analysis.sps: an SPSS syntax file for the tracker study
tracker-data.sav: the Tracker dataset (SPSS format)

## YouGov

yougov-analysis-brexit-id.sps: an SPSS syntax file for the YouGov study, Brexit identity
yougov-analysis-party-id.sps: an SPSS syntax file for the YouGov study, party identity
yougov-data-brexit-id.sav: the YouGov dataset, Brexit identity (SPSS format)
yougov-data-party-id.sav: the YouGov dataset, party identity (SPSS format)

## Sky

sky-analysis.sps: an SPSS syntax file for the Sky study
sky-data.sav: the Sky dataset (SPSS format)

## BBC 
bbc-analysis.Rmd: an rmarkdown document for the BBC dataset
bbc-analysis-cleaning.R: an R script used to clean the raw BBC dataset
bbc-analysis.pdf: the output of bbc-analysis.Rmd
bbc-data-raw.sav: the raw BBC dataset (SPSS format)
bbc-data-stacked.rds: the output of bbc-analysis-cleaning.R applied to bbc-data-raw.sav (R serialized format)
bbc-script.docx: the questionnaire for the BBC study

## Lodger

lodger-analysis.Rmd: an rmarkdown document for the Lodger dataset
lodger-analysis-cleaning.R: an R script used to clean the raw Lodger dataset
lodger-analysis.pdf: the output of lodger-analysis.Rmd
lodger-data-raw.sav: the raw Lodger dataset (SPSS format)
lodger-data-stacked.rds: the output of lodger-analysis-cleaning.R applied to lodger-data-raw.sav (R serialized format)
lodger-script.docx: the questionnaire for the Lodger study

## Misc

figure1.xlsx: the data used in Figure 1
figure2.xlsx: the data used in Figure 2
